varying	vec3 newColor;

void main() {
	vec4 clip = gl_ModelViewProjectionMatrix * gl_Vertex;
 	gl_Position = clip;
	gl_FrontColor = gl_Color;
	
	
	vec3 ndc = clip.xyz / clip.w;

	newColor = (ndc * 0.5) + 0.5;
}